package hypeerweb;

import java.util.Iterator;

public abstract class ModifyConnections {
	public void execute(NodeInterface doer, Node node)
	{
		Iterator<NodeInterface> iter = iterator(doer);
		
		while(iter.hasNext())
		{
			changeConnection(iter.next(), node);
		}
	}
	public abstract Iterator<NodeInterface> iterator(NodeInterface node);
	public abstract void changeConnection(NodeInterface toBeChanged, Node node);
}
